package org.september.pisces.user.permission.service;

import org.september.pisces.user.permission.entity.OperationLog;
import org.september.pisces.user.permission.utils.UserSessionHelper;
import org.september.smartdao.common.BaseService;
import org.springframework.stereotype.Service;


@Service
public class OperationLogService extends BaseService {

	public void addLog(String remark) {
		OperationLog log = new OperationLog();
		log.setActionUid(UserSessionHelper.getLoginUid());
		log.setActionUserName(UserSessionHelper.getLoginAccount());
		log.setRemark(remark);
		save(log);
	}
	
	public void addLog(Long uid,String remark) {
		OperationLog log = new OperationLog();
		log.setActionUid(uid);
		log.setRemark(remark);
		save(log);
	}
}
